// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.commands.serverCommands;

import zombie.commands.CommandBase;
import zombie.commands.CommandName;
import zombie.commands.RequiredRight;
import zombie.core.raknet.UdpConnection;

@CommandName(
    name = "clear"
)
@RequiredRight(
    requiredRights = 32
)
public class ClearCommand extends CommandBase {
    public ClearCommand(String username, String userAccessLevel, String command, UdpConnection connection) {
        super(username, userAccessLevel, command, connection);
    }

    @Override
    protected String Command() {
        String string = "Console cleared";
        if (this.connection == null) {
            for (int int0 = 0; int0 < 100; int0++) {
                System.out.println();
            }
        } else {
            StringBuilder stringBuilder = new StringBuilder();

            for (int int1 = 0; int1 < 50; int1++) {
                stringBuilder.append("<LINE>");
            }

            string = stringBuilder.toString() + string;
        }

        return string;
    }
}
